from abc import ABC

class Weight(ABC):
    """权重基类"""
    def __init__(self, value):
        self.value = value
    def get_value(self):
        """
        获取当前权重值
        """
        return self.value

class TimeWeight(Weight):
    """时间权重"""
    def __init__(self, value):
        super().__init__(value)

class ConsumptionWeight(Weight):
    """能耗权重"""
    def __init__(self, value):
        super().__init__(value)
class Crypticity(Weight):
    """隐蔽度因子"""
    def __init__(self, value):
        super().__init__(value)